<template>
	<view>
		<video :autoplay="true" :src="src" class="video" :show-fullscreen-btn="false">
			<cover-image class="canmeratop" :style="{'top':(statusBarHeight)+'px'}" @tap="canmerafan" src="../../static/xiaoyuhao.png"></cover-image>
		</video>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:'',
				statusBarHeight:0,
			}
		},
		onLoad(option) {
			this.src=option.src;
			uni.getSystemInfo({
				success:(res)=> {
					this.statusBarHeight=parseInt(res.statusBarHeight);
				}
			});	
		},
		methods: {
			canmerafan:function(){
				uni.navigateBack({
					delta:1,
				})
			}
		}
	}
</script>

<style lang="scss">
	.video{
		width: 100%;
		height: 100%;
		position: fixed;
		z-index: 90;
		top: 0upx;
		left: 0upx;
	}
	.canmeratop{
		position: fixed;
		top:50upx;
		left: 30upx;
		z-index: 99;
		width: 75upx;
		height: 75upx;
		
	}
</style>
